package main

import (
	"GO_BACK/config"
	"GO_BACK/routers"
	"github.com/gin-gonic/gin"
)

func main() {

	ginserver := gin.Default()
	gin.SetMode(gin.ReleaseMode)
	ginserver.Static("/static", "./static")
	ginserver.Use(config.CorsAll())
	routers.DefaultRouter(ginserver)
	routers.ApiRouter(ginserver)
	ginserver.Run(":8082")

}
